<include file="public@head_top"/>
<include file="public@member_top"/>
</head>
<body class="bgeee">
<include file="public@head"/>

<div class="wrap clearfloat tc-main">
	<div class="row">
    
        <div class="col-lg-3 leftnav">
            <include file="public@usernav" />
        </div>
        
		<div class="col-lg-9 rightmain">

                <div class="card-header usertitle">
                    <ul class="nav nav-tabs card-header-tabs">
                      <li class="nav-item">
                        <a class="nav-link active" href="#one" data-toggle="tab"><i class="fa fa-edit"></i> 修改资料</a>
                      </li>
                    </ul>
                  </div>
                  
                <div class="tab-content usercontent listContentBlock">
                    <div class="tab-pane active" id="one">
                        <form class="js-ajax-form" action="{:url('user/profile/editPost')}" method="post">
                            <div class="form-group row">
                                <label for="input-user_nickname" class="col-3 col-form-label">昵称</label>
                                <div class="col-9 col-sm-5 listbox">
                                    <input type="text" class="form-control" id="input-user_nickname" placeholder="昵称" name="user_nickname" value="{$user_nickname}">
                                </div>
                              </div>
                            <div class="form-group row">
                                <label for="input-sex" class="col-3 col-form-label">性别</label>
                                <div class="col-9 col-sm-5 listbox">
                                    <php>
                                        $sexs=array("0"=>"保密","1"=>"男","2"=>"女");
                                    </php>
                                    <select class="form-control" id="input-sex" name="sex">
                                        <foreach name="sexs" item="vo">
                                        <php>$sexselected=$key==$sex?"selected":"";</php>
                                            <option value="{$key}" {$sexselected}>{$vo}</option>
                                        </foreach>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="input-birthday" class="col-3 col-form-label">生日</label>
                                <div class="col-9 col-sm-5 listbox">
                                    <input class="form-control js-bootstrap-date" type="text" id="input-birthday" placeholder="2013-01-04" name="birthday" value="{:date('Y-m-d',$birthday)}">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="input-user_url" class="col-3 col-form-label">个人网址</label>
                                <div class="col-9 col-sm-5 listbox">
                                    <input class="form-control" type="text" id="input-user_url" placeholder="http://fastxcms.com" name="user_url" value="{$user_url}">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="input-signature" class="col-3 col-form-label">个性签名</label>
                                <div class="col-9 col-sm-7 listbox">
                                    <textarea class="form-control" id="input-signature" placeholder="个性签名" name="signature">{$signature}</textarea>
                                </div>
                            </div>
                            <div class="form-group row listButBox">
                                <label class="col-3 col-form-label"></label>
                                <div class="col-9 col-sm-7 listbox">
                                    <button type="submit" class="btn btn-success js-ajax-submit">保存</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                
        </div>
        
    </div>
</div>
<!-- /container -->

<include file="public@footer"/>
<include file="public@member_scripts"/>
</body>    
</html>